package com.twxm.breed.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.twxm.breed.entity.CategoryInfo;
import com.twxm.breed.entity.DeviceInfo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface DeviceInfoMapper extends BaseMapper<DeviceInfo> {
    void insertDevice(DeviceInfo deviceInfo);

    List<DeviceInfo> getAll();

    CategoryInfo getcategoryInfo(String deviceId);

    void setStatusOpen(String deviceId);

    void setStatusClose(String deviceId);

    DeviceInfo selectDeviceById(String deviceId);

    DeviceInfo getOxygenDeviceByPondId(String pondId);

    int deleteDevice(String deviceId);

    List<String> selectIdByPondId(String pondId);

    DeviceInfo getWaterSensorByPondId(String pondId);

    DeviceInfo getWeatherSensorByPondId(String pondId);

    void setMinutes(Map<String, Object> map);
}
